Skip to main content
Feedback

Adding Logger Utility Class

To debug the adapters, use com.mashery.trafficmanager.debug.Logger, a new utility class. This logs "debug"," info","warn", and "error log" statements.

Example statement

com.mashery.trafficmanager.debug.Logger.info(MyAdapter.class,"Info statement for request param {} and value {},paramName, paramValue)

In the adapter class, add:

com.mashery.trafficmanager.debug.Logger.info(MyAdapter.class,"Info statement for request param {} and value {},paramName, paramValue)
note

Use parameterized message patterns instead of concatenating variables to the message.